package ua.dou;

import android.app.Application;
import ua.dou.rss.RssReader;

/**
 * DOU.ua client application class.
 * @author: David Mayboroda
 */
public class Dou extends Application {

    private static Dou dou;
    private RssReader reader;

    public static Dou getInstance() {
        return dou;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        dou = this;
    }

    public synchronized RssReader getReader() {
        if (reader == null) { reader = new RssReader(); }
        return reader;
    }
}
